YES 1.059
H-Termination proof of /home/matraf/haskell/eval_FullyBlown_Fast/empty.hs
H-Termination of the given Haskell-Program with start terms could successfully be proven:
↳ HASKELL
↳ BR
mainModule Main
| ((signum :: Ratio Int -> Ratio Int) :: Ratio Int -> Ratio Int) |
module Main where
Replaced joker patterns by fresh variables and removed binding patterns.
↳ HASKELL
↳ BR
↳ HASKELL
↳ COR
mainModule Main
| ((signum :: Ratio Int -> Ratio Int) :: Ratio Int -> Ratio Int) |
module Main where
Cond Reductions:
The following Function with conditions
is transformed to
undefined0 | True | = undefined |
undefined1 | | = undefined0 False |
The following Function with conditions
signumReal | x |
| | x == 0 | |
| | x > 0 | |
| | otherwise | |
|
is transformed to
signumReal | x | = signumReal3 x |
signumReal1 | x True | = 1 |
signumReal1 | x False | = signumReal0 x otherwise |
signumReal2 | x True | = 0 |
signumReal2 | x False | = signumReal1 x (x > 0) |
signumReal3 | x | = signumReal2 x (x == 0) |
↳ HASKELL
↳ BR
↳ HASKELL
↳ COR
↳ HASKELL
↳ NumRed
mainModule Main
| ((signum :: Ratio Int -> Ratio Int) :: Ratio Int -> Ratio Int) |
module Main where
Num Reduction: All numbers are transformed to thier corresponding representation with Pos, Neg, Succ and Zero.
↳ HASKELL
↳ BR
↳ HASKELL
↳ COR
↳ HASKELL
↳ NumRed
↳ HASKELL
↳ Narrow
mainModule Main
| (signum :: Ratio Int -> Ratio Int) |
module Main where
Haskell To QDPs
↳ HASKELL
↳ BR
↳ HASKELL
↳ COR
↳ HASKELL
↳ NumRed
↳ HASKELL
↳ Narrow
↳ AND
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
Q DP problem:
The TRS P consists of the following rules:
new_signumReal1(vz13, Succ(vz140), Succ(vz150), ba) → new_signumReal1(vz13, vz140, vz150, ba)
R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem. From the DPs we obtained the following set of size-change graphs:
- new_signumReal1(vz13, Succ(vz140), Succ(vz150), ba) → new_signumReal1(vz13, vz140, vz150, ba)
The graph contains the following edges 1 >= 1, 2 > 2, 3 > 3, 4 >= 4
↳ HASKELL
↳ BR
↳ HASKELL
↳ COR
↳ HASKELL
↳ NumRed
↳ HASKELL
↳ Narrow
↳ AND
↳ QDP
↳ QDP
↳ QDPSizeChangeProof
Q DP problem:
The TRS P consists of the following rules:
new_signumReal10(vz7, Succ(vz80), Succ(vz90), ba) → new_signumReal10(vz7, vz80, vz90, ba)
R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem. From the DPs we obtained the following set of size-change graphs:
- new_signumReal10(vz7, Succ(vz80), Succ(vz90), ba) → new_signumReal10(vz7, vz80, vz90, ba)
The graph contains the following edges 1 >= 1, 2 > 2, 3 > 3, 4 >= 4